SUBDIRS = db net ui

.PHONY: all
all:
	@list='$(SUBDIRS)'; \
	for subdir in $$list; do \
		cd $$subdir && $(MAKE);\
		cd ..; \
	done

.PHONY: clean
clean:
	@list='$(SUBDIRS)'; \
	for subdir in $$list; do \
		cd $$subdir && $(MAKE) clean;\
		cd ..; \
	done


